<form action="{:sysuri()}" autocomplete="off" class="layui-form layui-form-pane form-search" method="get" onsubmit="return false">
    <div class="layui-form-item layui-inline">
        <label class="layui-form-label">店铺名称</label>
        <label class="layui-input-inline">
            <input class="layui-input" name="shop_name" placeholder="请输入店铺名称" value="{$get.shop_name|default=''}">
        </label>
    </div>
    <div class="layui-form-item layui-inline">
        <label class="layui-form-label">所属平台</label>
        <label class="layui-input-inline">
            <select class="layui-select" name="plat_id">
                <option value=''>----- 全部平台 -----</option>
                {foreach $plats as $plat}{if isset($get.plat_id) and $plat.id eq $get.plat_id}
                <option selected value="{$plat.id}">{$plat.plat_name}</option>
                {else}
                <option value="{$plat.id}">{$plat.plat_name}</option>
                {/if}{/foreach}
            </select>
        </label>
    </div>
    <!--{notempty name='cates'}-->
    <div class="layui-form-item layui-inline">
        <label class="layui-form-label">商品分类</label>
        <div class="layui-input-inline">
            <label class="layui-input-inline">
                <select class="layui-select" lay-search name="cat_id">
                    <option value="">----- 全部分类 -----</option>
                    {foreach $cates as $cate}{if isset($get.cat_id) and $cate.id eq $get.cat_id}
                    <option selected value="{$cate.id}">{$cate.name|default=''}</option>
                    {else}
                    <option value="{$cate.id}">{$cate.name|default=''}</option>
                    {/if}{/foreach}
                </select>
            </label>
        </div>
    </div>
    <!--{/notempty}-->
    <div class="layui-form-item layui-inline">
        <input name="type" type="hidden" value="{$type|default='t0'}">
        <button class="layui-btn layui-btn-primary"><i class="layui-icon">&#xe615;</i> 搜 索</button>
    </div>
</form>